<% display_class = ( @records.kind_of?(Array) ? @records.first : @records ) -%>
<tr id="<%= active_scaffold_calculations_id %>" class="active-scaffold-calculations">
  <% active_scaffold_config.list.columns.each do |column| -%>
    <td>
      <% if column.calculation? -%>
        <%
        calculation = column_calculation(column)

        override_formatter = "render_#{column.name}_#{column.calculate}"
        calculation = self.method(override_formatter).call(calculation) if respond_to? override_formatter

        _erbout.concat calculation.to_s
        -%>
      <% else -%>
        &nbsp;
      <% end -%>
    </td>
  <% end -%>
  <% unless active_scaffold_config.action_links.empty? -%>
    <td class="actions">&nbsp;</td>
  <% end -%>
</tr>